package com.jrx.anytxn.investor.mapper.ext;

import com.jrx.anytxn.investor.entity.TlInvestorLoanApproveLog;
import com.jrx.anytxn.investor.mapper.base.TlInvestorLoanApproveLogMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 放款出资方审批记录mapper扩展
 *
 * @author liuyang
 * @date  2020-06-05
 **/
public interface ExtTlInvestorLoanApproveLogMapper extends TlInvestorLoanApproveLogMapper {

    /**
     * 批量插入放款出资方审批记录
     *
     * @param investorLoanApproveLogs 放款出资方审批记录
     * @return int 插入条数
     * @author liuyang
     * @date  2020-06-05
     */
    int batchInsert(List<TlInvestorLoanApproveLog> investorLoanApproveLogs);

    /**
     * 根据以下条件查询放款出资方审批记录表
     * @author fan.yang
     * date: 2020/6/28 0028 上午 10:48
     * @param tenantId 租户ID
     * @param customerId 客户ID
     * @param investorId 出资方ID
     * @return com.jrx.anytxn.investor.entity.TlInvestorLoanApproveLog
     */
    List<TlInvestorLoanApproveLog> selectByInvestorIdAndCusId(@Param("tenantId") String tenantId,@Param("customerId") String customerId, @Param("investorId") String investorId);

    /**
     * 根据放款流水号查询放款审批记录表
     * @author fan.yang
     * date: 2020/7/8 0008 上午 10:11
     * @param tenantId 租户ID
     * @param customerId 客户ID
     * @param seqNo 放款流水号
     * @return java.util.List<com.jrx.anytxn.investor.entity.TlInvestorLoanApproveLog>
     */
    List<TlInvestorLoanApproveLog> selectByCusIdAndSeqNo(@Param("tenantId") String tenantId,@Param("customerId") String customerId,@Param("seqNo") String seqNo);

}